import Layout from '@/page/index/'
export default [{
    path: '/workhome',
    component: Layout,
    // redirect: '/company/company',
    children: [{
        path: 'worktodo/:flowId/:nodeId',
        // path: 'worktodo',
        // name: '流程待办',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/workbench/workhome/worktodo')
    }, {
        path: 'customer/:flowId',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/workbench/workhome/customer')
    }, {
        path: 'history/:flowId',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/workbench/workhome/history')
    }, {
        path: 'analysis',
        name: '图表统计',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/workbench/workhome/analysis')
    }]
}, {
    path: '/company',
    component: Layout,
    redirect: '/company/company',
    children: [{
        path: 'company',
        name: '平台(单位)管理',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/system/company/company')
    }, {
        path: 'orgtree',
        name: '组织架构',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/system/company/orgtree')
    }, {
        path: 'user',
        name: '用户管理',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/system/company/user')
    }, {
        path: 'role',
        name: '角色管理',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/system/company/role')
    }]
}, {
    path: '/dev',
    component: Layout,
    redirect: '/dev/index',
    children: [{
        path: 'menu',
        name: '菜单管理',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/system/dev/menu')
    }, {
        path: 'workflow',
        name: '流程管理',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/system/dev/workflow')
    }, {
        path: 'code',
        name: '代码管理',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/system/dev/code')
    }, {
        path: 'dict',
        name: '字典管理',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/system/dev/dict')
    }]
}, {
    path: '/view',
    component: Layout,
    redirect: '/view/index',
    children: [{
        path: 'index',
        name: '视图配置',
        meta: {
            i18n: 'view'
        },
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/system/view')
    }]
}, {
    path: '/',
    name: '首页',
    redirect: '/wel'
}, {
    path: '/wel',
    component: Layout,
    redirect: '/wel/index',
    children: [{
        path: 'index',
        name: '首页',
        meta: {
            i18n: 'dashboard'
        },
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/wel')
    }]
}, {
    path: '/form-detail',
    component: Layout,
    children: [{
        path: 'index',
        name: '详情页',
        meta: {
            i18n: 'detail'
        },
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/util/form-detail')
    }]
}, {
    path: '/info',
    component: Layout,
    redirect: '/info/index',
    children: [{
        path: 'index',
        name: '个人信息',
        meta: {
            i18n: 'info'
        },
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/user/info')
    }, {
        path: 'setting',
        name: '个人设置',
        meta: {
            i18n: 'setting'
        },
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/user/setting')
    }]
}]
